#正则表达式
import re

emails = ['123@qq.com', 'abc@163.com', '123@126.com', 'abc@qq.com']
pattern = r'^[a-zA-Z0-9_.+-]+@qq\.com$'
for email in emails:
    if re.match(pattern, email):
        print(f"{email}是qq邮箱")
    else:
        print(f"{email}不是qq邮箱")
